package com.xbai.bean.factory;

import com.xbai.domain.User;

/**
 * @author jxbai
 * @desc {@link User} 工厂类
 * @date 2021/1/26
 */
public interface UserFactory {

    default User createUser() {
        User user = new User();
        user.setId(1L);
        user.setName("UserFactory#createUser");
        return user;
    }

}
